package com.zq.widget.inverted.game.role.equipment.weapon.gun;

import com.zq.widget.inverted.game.role.level.Level;

/**
 * Created by zhangqiang on 2018/4/4.
 */
public abstract class AbstractGun implements Gun {

    private Level levelProxy;

    public AbstractGun(Level levelProxy) {
        this.levelProxy = levelProxy;
    }

    @Override
    public void onDrop() {

    }

    @Override
    public int type() {
        return 0;
    }

    @Override
    public void updateLevel(int level) {
        levelProxy.updateLevel(level);
    }

    @Override
    public int level() {
        return levelProxy.level();
    }

    @Override
    public int maxLevel() {
        return levelProxy.maxLevel();
    }

    @Override
    public float levelFactor() {
        return levelProxy.levelFactor();
    }
}
